<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
<title>无标题文档</title>
</head>

<body>
<script type="text/javascript">
try{
	document.forms.input.length;
}catch(exception){
	alert("实际的错误消息为："+exception.message+"\n错误类型字符串为："+exception.name);
}finally{
	alert("结束try...catch...finally语句");
}
</script>
</body>
</html>
